import {createRouter, createWebHistory} from 'vue-router'

import HelloWorld from "@/components/HelloWorld.vue"
import ChatFramework from "@/components/ChatFramework.vue"

const routes = [
    {path: '/', component: ChatFramework},
    {path: '/hello', component: HelloWorld},
    // {path: '/Message', component: Message},
    // {path: '/Friend', component: Friend},
    // {path: '/Mine', component: Mine},

    // {path: '/AddFriend', component: AddFriend},
]
const router = createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHistory(),
    routes, // `routes: routes` 的缩写
})

export default router;